package com.example.travel_front.Model;

public class Comment {
    private String username;
    private String userAvatar;
    private String content;
    private int likes;
    private int comments;
    private String timestamp; // 假设这是一个简单的时间戳表示

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getLikes() {
        return likes;
    }

    public void setLikes(int likes) {
        this.likes = likes;
    }

    public int getComments() {
        return comments;
    }

    public void setComments(int comments) {
        this.comments = comments;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public Comment(String username, String userAvatar, String content, int likes, int comments, String timestamp) {
        this.username = username;
        this.content = content;
        this.userAvatar = userAvatar;
        this.likes = likes;
        this.comments = comments;
        this.timestamp = timestamp;
    }

}

